
#ifndef STATESHOPANIMALS_H
#define STATESHOPANIMALS_H

#include "StateShopCommon.h"
#include "Singleton.h"
#include "RenderableEntity.h"
#include "AnimatedEntity.h"
#include "TextEntity.h"
#include "TimeLineEffect.h"
#include "AchievementData.h"
#include "Container.h"

class StateShopAnimals : public StateShopCommon, public Singleton<StateShopAnimals>
{
private:

    int m_iSelectedBaby;
    
    RenderableEntity* m_oBabyShadow[MAX_BABY_TYPES];
    AnimatedEntity* m_oBabyIcon[MAX_BABY_TYPES];
    TextEntity* m_oBabyText[MAX_BABY_TYPES];
    TextEntity* m_oBabyPrice[MAX_BABY_TYPES];
    RenderableEntity* m_oBabyCoin[MAX_BABY_TYPES];

    RenderableEntity* m_oBabySelectedIcon;

    RenderableEntity* m_oDetailsIcon;
    TextEntity* m_oDetailsText;
    
    RenderableEntity* m_oBuyIcon;
    TextEntity* m_oBuyText;
    
public:
    
	StateShopAnimals(){}
	~StateShopAnimals(){}
    
    void loadContent();
	void unloadContent();
    
	void enter();
	void activated();
    void update(float dt);
    void updatePaused(float dt);
    void render();
    void exit();
    
    void setBackState();
    
    void updateButtons();
    void showBuyPopup();
};

#endif
